<a data-toggle="modal" href="#modal-show-{!! $data->id !!}">
  查看
</a>
&middot;
<div id="modal-show-{!! $data->id !!}" class="modal text-left fade">
  <div class="modal-dialog">
    <div class="modal-content">
      
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h1 class="modal-title">出货单详情</h1>
      </div>
      <div class="modal-body">
          <table class="table table-bordered">
              <tr>
                  <td>出货单号:</td>
                  <td>{!! $data->codeno !!}</td>
                  <td>单位/客户:</td>
                  <td>{!! $data->client_company !!}</td>
              </tr>
              <tr>
                  <td>联系方式:</td>
                  <td>{!! $data->client_phone !!}</td>
                  <td>交货时间:</td>
                  <td>{!! $data->jiaohuo_at !!}</td>
              </tr>
              <tr>
                  <td>出货总量:</td>
                  <td>{!! $data->ship_nums !!}</td>
                  <td>出货总金额:</td>
                  <td>{!! $data->all_price !!}元</td>
              </tr>
              <tr>
                   <td>安装总费用:</td>
                  <td>{!! $data->all_install_price !!}元</td>
                  <td>合计总金额:</td>
                  <td>{!! $data->all_price+$data->all_install_price !!}元</td>
              </tr>
              <tr>
                 
                  <td>创建时间:</td>
                  <td>{!! $data->created_at !!}</td>
                  <td>已付金额:</td>
                  <td>{!! $data->pay !!}元</td>
              </tr>
              <tr>
                  <td colspan="4">备注:{!! $data->remark !!}</td>
              </tr>
          </table>
          <div class="content">出货明细</div>
          <table class="table">
              <thead>
                  <tr>
                      <th>产品名/型号</th>
                      <th>数量</th>
                      <th>单价</th>
                      <th>安装费</th>
                      <th>金额</th>
                  </tr>
              </thead>
              <tbody>
             @foreach($data->shipment_item as $i)
             <tr>
                 <td>{!! $i->goods->name !!}/{!! $i->goods->codeno !!}</td>
                 <td>{!! $i->ship_nums !!}({!! $i->danwei !!})</td>
                 <td>{!! $i->ship_price !!}元/{!! $i->danwei !!}</td>
                 <td>{!! $i->ship_nums*$i->ship_install_price !!}元</td>
                 <td>{!! $i->ship_price*$i->ship_nums+$i->ship_nums*$i->ship_install_price !!}元</td>
             </tr>
             @endforeach
              </tbody>
          </table>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
      </div>

    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
